/**
 * 2019.8.26 按钮权限指令
 */

import permission from './permission'

const install = function(Vue) {
  Vue.directive('premission', permission)
}

if (window.Vue) {
  window['permission'] = permission
  Vue.use(install); // eslint-disable-line
}

permission.install = install
export default permission

